<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:p="http://primefaces.org/ui">
<head></head>
<body>
	<composite:interface>
		<composite:attribute name="beanToUse" />
	</composite:interface>

	<composite:implementation>
	<h:form id="createARecordView">
		<p:outputPanel>
			<p:panel rendered="#{cc.attrs.beanToUse.show}">
				<h:panelGrid width="100%" columns="2" style="margin-bottom:10px">
					<f:facet name="header">

					</f:facet>
					<p:commandLink style="margin-right:20px;" update="#{viewBeanBucket.getUpdateString()}">
						<f:setPropertyActionListener value="#{false}"
							target="#{cc.attrs.beanToUse.show}" />
						<h:outputText value="X" />
					</p:commandLink>
					<h:outputText />
					<h:outputLabel value="Distinguished Name" />
					<h:outputText value="#{ldapTreeBean.selectedNode.ldapObject.dn}" />
					<h:outputLabel value="DNS Name" />
					<p:inputText value="#{cc.attrs.beanToUse.aRecord.cn}"></p:inputText>
					<h:outputLabel value="IP Address" />
					<p:inputText value="#{cc.attrs.beanToUse.aRecord.ipAddress}"></p:inputText>
					<h:outputLabel value="TTL" />
					<p:inputText value="#{cc.attrs.beanToUse.aRecord.ttl}"></p:inputText>
					<h:outputLabel value="" />
					<p:commandButton value="Create" action="#{cc.attrs.beanToUse.create}"
						ajax="false"></p:commandButton>
				</h:panelGrid>

			</p:panel>
		</p:outputPanel>
	</h:form>
	</composite:implementation>
</body>
</html>